{% extends "base.html" %}
{% load url from future %}

{% block body %}

<div data-role="page" id="login">
<div data-role="header" data-position="fixed">
  <h1>Partibus</h1>
</div>

<div data-role="content" align="center">	

  {% if form.errors %}
  <p>Your username and password didn't match. Please try again.</p>
  {% endif %}

  <form method="post" data-ajax="false" action="{% url 'django.contrib.auth.views.login' %}">
    {% csrf_token %}
    <table>
      <tr>
	<td>{{ form.username.label_tag }}</td>
	<td>{{ form.username }}</td>
      </tr>
      <tr>
	<td>{{ form.password.label_tag }}</td>
	<td>{{ form.password }}</td>
      </tr>
    </table>
    
    <input type="submit" data-ajax="false" value="Login"  data-inline="true" data-theme="a"/>
    <input type="hidden" name="next" value="{{ next }}" />
  </form>
  <p>
  Don't have an account? <a href="/createaccount/">Create One Now</a>

</div>

<div data-role="footer" data-position="fixed" data-id="persist_bar">
  <div data-role="navbar" data-iconpos="left">
  </div>
</div>

</div>


{% endblock %}


